package com.qingmi.farmer.viewmodel;

import android.databinding.ObservableField;

import com.qingmi.farmer.data.model.Notice;
import com.wjjun.basemvpvm.viewmodel.BaseViewModel;

/**
 * 公告
 * Created by 67535 on 2018/4/30.
 */
public class NoticeItemViewModel extends BaseViewModel {


    public String id;

    public final ObservableField<String> notice = new ObservableField<>();


    public String url;


    public NoticeItemViewModel(Notice notice) {
        id = notice.getNoticeId();
        this.notice.set(notice.toString());
        url = notice.getUrl();
    }
}
